Use fractional scale for the GL renderer
authorMatthias Clasen <mclasen@redhat.com>
Sun, 2 Apr 2023 02:52:13 +0000 (22:52 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 2 Apr 2023 13:22:56 +0000 (09:22 -0400)
commitfa58dd9256cfe5775718a311e1785ca3df46bddc
treed4369322cbbd4c9fa3782407a8630b2b22ba53f4
parent519cde95f0a02ab9ff9bc96bad89747a7bda6a3f
Use fractional scale for the GL renderer

This commit combines changes in the Wayland backend,
the GL context frontend, and the GL renderer to switch
them all to use the fractional scale.

In the Wayland backend, we now use the fractional scale
to size the EGL window.

In the GL frontend code, we use the fractional scale to
scale the damage region and surface in begin/end_frame.

And in the GL renderer, we replace gdk_surface_get_scale_factor()
with gdk_surface_get_scale().
gdk/gdkglcontext.c
gdk/wayland/gdksurface-wayland.c
gsk/gl/gskglrenderer.c